home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / modal-dialog-sample ƒ / Buttons.h < prev    next >
Encoding:
Text File  |  1991-10-26  |  543 b   |  22 lines  |  [TEXT/KAHL]

  1. /*
  2. **    Project    dialog example
  3. **    Module    Buttons.h
  4. **    Author    Bernie Wieser ©1991
  5. **    Date    10/26/91
  6. **
  7. **    Purpose
  8. **        Routines to handle dialog buttons.
  9. **
  10. */
  11.  
  12. short PressButton(        /* fake a button press */
  13.     DialogPtr    dp,        /* button's dlog */
  14.     short        item,    /* the button id */
  15.     long        delay    /* delay down */
  16.     );                    /* return failure if button inactive */
  17.  
  18.  
  19. short DefaultButton(    /* highlight the default button */
  20.     DialogPtr    dp,        /* the button's dialog */
  21.     short        item    /* the button's id, usually 1 */
  22.     );                    /* return failure if button inactive */